package com.android.font;

import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.widget.TextView;

public class FontDemoActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        TextView sanText = (TextView) this.findViewById(R.id.san);
        Typeface sanFace = Typeface.createFromAsset(getAssets(), "fonts/sansseri.ttf");
        sanText.setTypeface(sanFace);
        
        TextView monoText = (TextView) this.findViewById(R.id.mono);
        Typeface monoFace = Typeface.createFromAsset(getAssets(), "fonts/Monospace.ttf");
        monoText.setTypeface(monoFace);
        
        TextView refsanText = (TextView) this.findViewById(R.id.refsan);
        Typeface refsanFace = Typeface.createFromAsset(getAssets(), "fonts/timesnewsroman.ttf");
        refsanText.setTypeface(refsanFace);
    }
}